package com.bcxk.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bcxk.entity.dto.RoomFacility;
import com.bcxk.mapper.RoomFacilityMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class RoomFacilityService extends ServiceImpl<RoomFacilityMapper, RoomFacility> {
    @Transactional(readOnly = true)
    public List<RoomFacility> getFacilitysByRoomId(Long roomId) {
        return this.baseMapper.getFacilitysByRoomId(roomId);
    }
}
